package com.evil.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.evil.application.pojo.dto.CopyApplicationDTO;
import com.evil.application.pojo.entity.ApplicationInfo;
import com.evil.application.pojo.entity.ApplicationView;

/**
 * 应用视图配置表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public interface ApplicationViewService extends IService<ApplicationView> {

    /**
     * 删除应用所有视图
     *
     * @param applicationInfo applicationInfo
     */
    void deleteByApp(ApplicationInfo applicationInfo);

    /**
     * 复制应用所有视图
     *
     * @param copyApplicationDTO copyApplicationDTO
     */
    void copyByApp(CopyApplicationDTO copyApplicationDTO);

    /**
     * 发布应用所有视图
     *
     * @param applicationInfo applicationInfo
     */
    void publishView(ApplicationInfo applicationInfo);

    /**
     * 还原应用所有视图
     *
     * @param applicationInfo applicationInfo
     */
    void restoreView(ApplicationInfo applicationInfo);

}
